<!DOCTYPE html>
<html>
<head>
<include file="public:headtop" />
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/dialog.js" id="dialog_js"></script>
<link href="__STATIC__/weixin/css/dialog.css" rel="stylesheet" type="text/css">
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery_003.js"></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/zh-CN.js"></script>
<script charset="utf-8" type="text/javascript" src="__STATIC__/weixin/js/jquery_002.js"></script>
<link rel="stylesheet" type="text/css" href="__STATIC__/weixin/css/jquery.css">
<style>
.button_aaa
{
color:white;
font-size: 12px; 
padding: 5px;
border:1px solid #CCC;
background: #2BD54D;
}
.button_aaa:visited {color: white;}  /* 已访问的链接 */
</style>
</head>

<body>
<include file="public:head" />
<div class="content">
    <div class="membertop">
       <div class="my_name" style="height:40px; padding-left:15px;"><a>{$visitor.username}</a></div>
       <div class="logout"><a href="{:U('user/logout')}">注销</a> | <a href="{:U('user/favi')}">我的收藏</a></div>
       <div class="my_address"><a href="{:U('user/address', array('tokenTall'=>$tokenTall))}">收货地址管理</a></div>
    </div>
    <ul class="buyer_stat">
          <li class="btn_1 <if condition='$status eq 1'>active</if> "><a href="{:U('user/index',array('status'=>1,'tokenTall'=>$tokenTall))}">待付款</a><span>待付款</span></li>        
          <li class="btn_2 <if condition='$status eq 2'>active</if> "><a href="{:U('user/index',array('status'=>2,'tokenTall'=>$tokenTall))}">待发货</a><span>待发货</span></li>
          <li class="btn_3 <if condition='$status eq 3'>active</if>"><a href="{:U('user/index',array('status'=>3,'tokenTall'=>$tokenTall))}">待收货</a><span>待收货</span></li>
          <li class="btn_4 <if condition='$status eq 4'>active</if>"><a href="{:U('user/index',array('status'=>4,'tokenTall'=>$tokenTall))}">已完成</a><span>已完成</span></li>
    </ul>
	<script type="text/javascript">
	    $(function(){
	    $(".buyer_stat > li a").each(function() {
	                href="http://store.weiapps.cn/"+$(this).attr("href");
	                if(window.location.href==href){
	                    $(this).parent("li").addClass("active");
	                }
	            });
	    });
	//xxl start    	    
	function addcomments(){	
	        alert(1);
		location.href=':U('user/comments',array('item_id'=>144))}';
	}
	//xxl end   http://www.ttiantian.com/weTall/index.php?m=user&a=index&status=4&tokenTall=qcjnep1401844607
    </script>
    <div class="wrap">
        <div class="public">
            <notempty name="item_orders">
            <volist name='item_orders' id='vo' >
            	<div class="order_form">
                    <p class="num">订单号: {$vo.orderId}</p>
                    <volist name='vo.items' id='item' >
                    
                    <div style="clear:both">
                    	<div style="float:left;display:inline;"> <span style="margin-left:20px"><p class="ware_pic"><a href="{:U('Item/index',array('id'=>$item['itemId'],'tokenTall'=>$tokenTall))}" ><img src="{:$item['img']}" height="80" width="80"></a></p></div>
                    	<div style="float:left;display:imline;">
                    		<div style="float:left;display:imline;margin-top:20px;margin-left:20px;">
                    			<ul>
                    				<li> <p class="ware_text"><a href="{:U('Item/index',array('id'=>$item['itemId'],'tokenTall'=>$tokenTall))}">{$item.title}</a><br><span class="attr"></span></p></li>
                    				<li><span class="buy-size">大小:{$item.size}</span><span class="buy-color">颜色: {$item.color}</span></li>
                    				<li class="price"><span class="buy-price">价格: ¥{$item.price}</span><span class="buy-num">数量: {$item.quantity}</span></li>
                    			</ul>
                    		</div>
                    		<div style="float:left;display:imline;margin-top: 50px;">
                    		<if condition="$vo.status eq 4">
	                          <span>
	                         		<a class="button_aaa" href="{:U('user/comments',array('item'=>$item))}" >添加评论</a> 
	                          </span>                       
                        </if> 
                    		</div>
                    	</div>
                    	<div style="clear:both;"></div>
                    
                    </div>
                   <!--<div class="con">
                       <span style="margin-left:20px"><p class="ware_pic"><a href="{:U('Item/index',array('id'=>$item['itemId'],'tokenTall'=>$tokenTall))}" ><img src="{:$item['img']}" height="80" width="80"></a></p>
                        <p class="ware_text"><a href="{:U('Item/index',array('id'=>$item['itemId'],'tokenTall'=>$tokenTall))}">{$item.title}</a><br><span class="attr"></span></p>
                        <p>大小: <span>{$item.size}</p>
                        <p>颜色: <span>{$item.color}</p>
                        <p class="price">价格: <span>¥{$item.price}</p>
                        <p class="amount">数量: <span>{$item.quantity}</p></span>
                        <if condition="$vo.status eq 4">
	                          <span style="margin-left:100px;">
	                         		<a class="button_aaa" href="{:U('user/comments',array('item'=>$item))}" >添加评论</a> 
	                          </span>                       
                        </if> 
                    </div>-->
 	                              
                    </volist>
                    <div class="clear"></div>
                    <div class="foot">
                        <p class="time">添加时间:{$vo.add_time|date='Y-m-d H:i:s',###}</p>
                         <div class="handle">
                            <div>订单总价: <b id="order118_order_amount" style="color:red;">¥{$vo.order_sumPrice}&nbsp;&nbsp;</b></div>
                            <div style="float:left;">
                            <switch name="vo.status" >
	                        <case value="1"><!--待付款 -->
	                           <a class="button_aaa" href="{:U('order/pay',array('orderId'=>$vo['orderId'],'tokenTall'=>$tokenTall, 'showwxpaytitle'=>1))}" id="order118_action_pay" class="btn">付款</a>
	                           <a class="button_aaa" href="{:U('order/cancelOrder',array('orderId'=>$vo['orderId'],'tokenTall'=>$tokenTall))}" id="order118_action_cancel"> 取消订单</a>
	                           <a class="button_aaa" href="{:U('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status,'tokenTall'=>$tokenTall))}" >查看订单</a>
	                        </case>
	                        <case value="2"><!--待发货 -->
	                           <a class="button_aaa" href="{:U('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status,'tokenTall'=>$tokenTall))}" >查看订单</a>
	                        </case>
	                        <case value="3"><!-- 待收货 -->
	                           <a class="button_aaa" href="{:U('order/confirmOrder',array('orderId'=>$vo['orderId'],'status'=>$status,'tokenTall'=>$tokenTall))}" id="order118_action_confirm" >确认收货</a>
	                           <a class="button_aaa" href="{:U('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status,'tokenTall'=>$tokenTall))}" >查看订单</a>	                           
	                        </case>
	                        <default />
	                        
	                           <a class="button_aaa" href="{:U('order/checkOrder',array('orderId'=>$vo['orderId'],'status'=>$status,'tokenTall'=>$tokenTall))}" >查看订单</a>

	                        
	                    </switch>
	                   </div>
                        </div>
                    </div>
            	</div>
            </volist>
            <else/>
            <div class="order_form member_no_records">
                <span>没有符合条件的记录</span>
            </div>
            </notempty>

            <div class="order_form_page">
                <div class="page"></div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="wrap_bottom"></div>
    </div>
    <div class="wrap_line margin1" style="display:none;">
        <div class="public_index">
            <div class="information_index">
                <div class="awoke">
您目前还没有已生成的订单<br>去<a href="#">商城首页</a>，挑选喜爱的商品，体验购物乐趣吧。
                </div>
            </div>
        </div>
        <div class="wrap_bottom"></div>
    </div>
    <div class="clear"></div>
</div>
<include file="public:footer" />
</body>
</html>
